package datacorce_jdbc;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import javax.sql.DataSource;
import java.sql.Connection;
import java.sql.SQLException;

public class c3p0 {
    public static void main(String[] args) throws SQLException {
        DataSource data = new ComboPooledDataSource("otherc3p0");
        for(int i = 0;i<11;i++){
        Connection conn = data.getConnection();
        System.out.println(i+"   "+conn);}
    }
}
